package cn.com.cfae.iras.doc.analyze.service.integrityregulation;

import cn.com.cfae.iras.doc.analyze.beans.iaad.IaadAnalyzeJob;
import cn.com.cfae.iras.doc.analyze.beans.iaad.IaadAnalyzeJobDetail;
import cn.com.cfae.iras.doc.analyze.beans.iaad.IaadGrade;
import cn.com.cfae.iras.doc.analyze.beans.iaad.IaadIndicatorGradeDetail;
import cn.com.cfae.iras.doc.analyze.beans.iaad.IndustryIndicatorList;
import cn.com.cfae.iras.doc.analyze.beans.integrity.IntegrityRegulation;
import cn.com.cfae.iras.doc.analyze.beans.integrity.IntegrityRegulationDetail;
import cn.com.cfae.iras.doc.analyze.dao.integrityregulation.IntegrityRegulationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by 佟媛媛 on 18/10/23.
 */

@Service
public class IntegrityRegulationServiceImpl implements IntegrityRegulationService {

    @Autowired
    private IntegrityRegulationMapper integrityRegulationMapper;

    @Override
    public List<Map> getComponentList(Map map) throws Exception {

        return integrityRegulationMapper.getComponentList(map);
    }

    @Override
    public List<Map> getComponentList2(Map map) throws Exception {
        return integrityRegulationMapper.getComponentList2(map);
    }

    @Override
    public List<IntegrityRegulationDetail> getIntegrityRegulationDetailList(IntegrityRegulationDetail integrityRegulationDetail) throws Exception {
        return integrityRegulationMapper.getIntegrityRegulationDetailList(integrityRegulationDetail);
    }

    @Override
    public List<IntegrityRegulation> getIntegrityRegulationList(IntegrityRegulation integrityRegulation) throws Exception {
        return integrityRegulationMapper.getIntegrityRegulationList(integrityRegulation);
    }

    @Override
    public List<IndustryIndicatorList> getManualIaadIndicatorGradeDetailList(Map map) throws Exception {
        return integrityRegulationMapper.getManualIaadIndicatorGradeDetailList(map);
    }

    @Override
    public IaadGrade getIaadGrade(Map map) throws Exception {
        return integrityRegulationMapper.getIaadGrade(map);
    }

    @Override
    public void addIaadIndicatorGradeDetail(List<IaadIndicatorGradeDetail> list) throws Exception {
        integrityRegulationMapper.addIaadIndicatorGradeDetail(list);
    }

    @Override
    public void deleteIaadIndicatorGradeDetail(String indicatorGradeId) throws Exception {
        integrityRegulationMapper.deleteIaadIndicatorGradeDetail(indicatorGradeId);
    }

    @Override
    public void updateIaadIndicatorGradeAutomateTotalScore(Map map) throws Exception {
        integrityRegulationMapper.updateIaadIndicatorGradeAutomateTotalScore(map);
    }

    @Override
    public void updateIaadGradeTotalScore(Map map) throws Exception {
        integrityRegulationMapper.updateIaadGradeTotalScore(map);
    }

    @Override
    public void updateIaadGradeProjectName(Map map) throws Exception {
        integrityRegulationMapper.updateIaadGradeProjectName( map);
    }

    @Override
    public IaadAnalyzeJob getIaadAnalyzeJobById(String jobId) throws Exception {
        return integrityRegulationMapper.getIaadAnalyzeJobById(jobId);
    }

    @Override
    public void updateIaadAnalyzeJob(IaadAnalyzeJob iaadAnalyzeJob) throws Exception {
        integrityRegulationMapper.updateIaadAnalyzeJob(iaadAnalyzeJob);
    }

    @Override
    public void addIaadAnalyzeJobDetail(IaadAnalyzeJobDetail iaadAnalyzeJobDetail) throws Exception {
        integrityRegulationMapper.addIaadAnalyzeJobDetail(iaadAnalyzeJobDetail);
    }
}
